import React, { Component, PropTypes } from 'react'

export default class MainOperationBtn extends Component {
  render() {
    const { text, extraCls } = this.props
    return (
      <div
        className={`cm-main-btn ${extraCls}`}
      >
        {text}
      </div>
    )
  }
}

MainOperationBtn.defaultProps = {
  extraCls: '',
}

MainOperationBtn.propTypes = {
  text: PropTypes.string.isRequired,
  extraCls: PropTypes.string,
}